package cc.permission.domain.dataRule;

/**
 * 数据据权限规则
 *
 * @author wangyan
 * @date 2021/6/23 11:40
 */
public class Rule {
    /**
     * 属性
     */
    private String field;
    /**
     * 条件
     */
    private String op;
    /**
     * 允许值
     */
    private String value;

    public Rule(String field, String op, String value) {
        this.field = field;
        this.op = op;
        this.value = value;
    }

    public static void main(String[] args){
        new Rule("classification","in","[1,2,3,4]");
        new Rule("agent","equals","zhangsan");
    }

}
